﻿using System;

public partial class System_Pages_Settings_WelcomePage : SiteFox.Base.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            SiteFox.Business.Model.Site _Site = SiteFox.Business.Manager.Site.Get();
            ucc_WelcomePage_Path.Value = _Site.WelcomePagePath;
        }
    }
    protected void lib_WelcomePage_Save_Click(object sender, EventArgs e)
    {
        var _Site = SiteFox.Business.Manager.Site.Get();
        _Site.WelcomePagePath = ucc_WelcomePage_Path.Value;
        SiteFox.Business.Manager.Site.Edit(_Site);
        ucc_Message.Value = Resources.dcCommon.dc_SettingSuccessfullySaved;
    }
}